package edu.its.dreamteam.daf.beans;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;


public class Position extends BaseBean implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	
	private String idPosition;
	private String position;
	private Integer earnPoint;
	
	public String getIdPosition() {
		return idPosition;
	}

	public void setIdPosition(String idPosition) {
		this.idPosition = idPosition;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public Integer getEarnPoint() {
		return earnPoint;
	}

	public void setEarnPoint(Integer earnPoint) {
		this.earnPoint = earnPoint;
	}

	@Override
	protected String getPrimaryKey() {
		return getIdPosition();
	}
	
	public boolean equals(Object object) {
		if (!(object instanceof Position)) {
			return false;
		}
		Position obj = (Position) object;
		return new EqualsBuilder()
				.append(this.idPosition, obj.idPosition)
				.append(this.position, obj.position)
				.isEquals();
	}
}
